package com.jason.www.strategy_pattern.demo1.stategy;

import com.jason.www.strategy_pattern.demo1.core.TranslationStategy;

public class JapaneseTranslationStategy implements TranslationStategy {
    @Override
    public String translate(String english) {
        String japanese = null;
        switch (english.toUpperCase()) {
            case "HELLO":
                japanese = "こんにちは";
                break;
            case "BYE":
                japanese = "さようなら";
                break;
            default:
        }
        return japanese;
    }
}
